﻿#define _CRT_SECURE_NO_WARNINGS//模拟实现strcpy
#include<stdio.h>
#include<string.h>
my_strcpy(char* p1, char* p2)
{
	while (*p1 != '\0')
	{
		*p1++ = *p2++;
	}
}
int main()
{
	char arr1[] = "xxxxx";
	char arr2[] = "abcdef";
	strcpy(arr2, arr1);
	printf("%s\n", arr2);
	my_strcpy(arr1, arr2);
	printf("%s\n", arr2);
	return 0;
}